<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/11
  Time: 8:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>Title</title>
</head>
<script>
  function f(){
    history.back();
  }
</script>
<body>
<span style="color: gray" onclick="f()"><</span>&nbsp;&nbsp;&nbsp;<span style="display:inline-block;width:200px;font-weight:bold;"><h2>赎回产品</h2></span>
<hr>
<form action="${pageContext.request.contextPath}/productServlet?pid=${myProduct.pid}" method="post">
  <input type="hidden" name="action" value="isBack">
  <span style="color: red">${errorMsg}</span><br>
  <span>产品名称：</span><input type="text" readonly value="${myProduct.pname}"><br>
  <span>赎回账户：</span><input type="text" readonly value="${myAccount.phone}"><br>
  <span>支付密码：</span><input type="password" name="password" required value="" ><br>
  <span>请输入赎回份数：</span><input type="text" name="pnum" value="" ><br>
  <span>您当前已购份数：</span><input type="text" name="pnumber" readonly value="${myProduct.pnum}" ><br>
  <%--<span>所需钱数：</span><input type="text" name="pay" value="" readonly>--%>
  <input type="submit" value="提交">
  <h2>赎回规则：</h2>
  <h3>当前赎回金额将按照购买单价*(1+收益率计算)，如果不足赎回期限，将在此基础上扣除本金的1/5作为手续费，收益率将按照所占天数等比缩小</h3>
</form>


</body>
</html>
